package com.lqq.designPattern.structural_pattern.proxy.jdkProxy;

//测试类
public class Client {
    public static void main(String[] args) {
        //创建代理工厂对象
        ProxyFactory factory = new ProxyFactory();
        //获取代理对象
        SellTickets proxy = factory.getProxyInstance();
        //代理对象卖票
        proxy.sell();

        //打印代理类
        System.out.println(proxy.getClass());
        //让程序一直执行
        while(true) { }
    }
}
